using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface IClass_FeeTimeActionService:BaseActionService
    {
        long Save(object _model);
        IList<CoreData.Class_FeeTime> GetListByLINQ(Func<CoreData.Class_FeeTime, Boolean> _where);
        CoreData.Class_FeeTime GetOneByLINQ(Func<CoreData.Class_FeeTime, Boolean> _where);
        bool Delete(object _model);
        CoreData.Class_FeeTime GetByType(int type);
        string GetFeeTimeString(DateTime time, int type, long Student_FeeID);
         Class_FeeTime GetFeeTimeByStudentIDAndType(long studentid, int type);
         Class_FeeTime GetFeeTimeByClassIDAndType(long classId, int type);
        
    }

    public partial class Class_FeeTimeActionService:IClass_FeeTimeActionService
    {
       Class_FeeTimeService Service;

       public Class_FeeTimeActionService()
       {
           Service = new Class_FeeTimeService();
       }

       #region Main Method

       public virtual long Save(object _model)
       {
           return Service.Save(_model);
       }

       public virtual object GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual object GetList()
       {
           return Service.GetList();
       }

       public virtual IList<CoreData.Class_FeeTime> GetListByLINQ(Func<CoreData.Class_FeeTime, Boolean> _where)
       {
           return Service.GetListByLINQ(_where);
       }

       public virtual CoreData.Class_FeeTime GetOneByLINQ(Func<CoreData.Class_FeeTime, Boolean> _where)
       {
           return Service.GetOneByLINQ(_where);
       }

       public virtual object GetList(string _searchstring)
       {
           return Service.GetList(_searchstring);
       }

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }

       #endregion


        #region Other Method
       public virtual CoreData.Class_FeeTime GetByType(int type)
       {
           return Service.GetByType(type);
       }

       public virtual string GetFeeTimeString(DateTime time, int type, long Student_FeeID)
       {
           return Service.GetFeeTimeString(time,type, Student_FeeID);
       }

       public virtual Class_FeeTime GetFeeTimeByStudentIDAndType(long studentid, int type)
       {
           return Service.GetFeeTimeByStudentIDAndType(studentid, type);
       }

       public virtual Class_FeeTime GetFeeTimeByClassIDAndType(long classId, int type)
       {
           return Service.GetFeeTimeByClassIDAndType(classId, type);
       }

        #endregion

    }
         
}
